package com.zjhn.ds.param;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @BelongsProject: ds_jlw
 * @BelongsPackage: com.zjhn.ds.param
 * @Author: sxt
 * @CreateTime: 2024-01-10  13:43
 * @Description:
 * @Version: 1.0
 */
@Data
public class SpotCheckParam {

    @ApiModelProperty("机台id")
    @JsonProperty("station_id")
    @NotBlank(message = "机台id不能为空")
    private String stationId;

    @ApiModelProperty("机台编码")
    @JsonProperty("station_code")
    @NotBlank(message = "机台编码不能为空")
    private String stationCode;

    @ApiModelProperty("刷卡id")
    @JsonProperty("swipe_card_id")
    private String swipeCardId;

    @ApiModelProperty("派工id")
    @JsonProperty("assign_task_id")
    private String assignTaskId;

    @ApiModelProperty("生产明细id")
    @JsonProperty("pro_task_detail_id")
    private String proTaskDetailId;

    @ApiModelProperty("生产单code")
    @JsonProperty("pro_task_code")
    private String proTaskCode;

    @ApiModelProperty("款号")
    @JsonProperty("style_code")
    private String styleCode;

    @ApiModelProperty(value = "颜色")
    @JsonProperty("color_main")
    private String colorMain;

    @ApiModelProperty(value = "尺码")
    private String size;

    @ApiModelProperty(value = "针数")
    private String needle;

    @ApiModelProperty(value = "抽查数")
    @JsonProperty("spot_check_qty")
    private Integer spotCheckQty;

    @ApiModelProperty(value = "次品数")
    @JsonProperty("reject_qty")
    private Integer rejectQty;

    @ApiModelProperty("大货号")
    @JsonProperty("kh_style")
    private String khStyle;

    @ApiModelProperty("挡车工")
    @NotBlank(message = "挡车工不能为空")
    private String spinner;

    @ApiModelProperty(value = "合格率")
    @JsonProperty("pass_rate")
    private BigDecimal passRate;

    @ApiModelProperty("备注")
    private String memo;
}
